public class StudentCountVisitor implements PaperSelectionVisitor {
    private int count;

    @Override
    public void visit(PaperSelection selection) {
        count = selection.getStudentsWithSelections().size();
    }

    public int getCount() {
        return count;
    }
}